using System;

namespace Camalon.Drawing.Samples.CSharp
{
	/// <summary>
	/// Summary description for ShadeTest.
	/// </summary>
	public class ShadeTest:Camalon.Drawing.ShapeContainer
	{
		private Camalon.Drawing.LinearGradientFill shapeFill;
		private Camalon.Drawing.Shade shade;
		private Camalon.Drawing.PathGradientFill shadeFill;
		private Camalon.Drawing.Shapes.Pie pie;
		private Camalon.Drawing.ShapePen shadePen;
		private Camalon.Drawing.Shapes.RectangleShape rectangle;
	
		private void InitializeComponent()
		{
            this.pie = new Camalon.Drawing.Shapes.Pie();
            this.shapeFill = new Camalon.Drawing.LinearGradientFill();
            this.shadePen = new Camalon.Drawing.ShapePen();
            this.shade = new Camalon.Drawing.Shade();
            this.shadeFill = new Camalon.Drawing.PathGradientFill();
            this.rectangle = new Camalon.Drawing.Shapes.RectangleShape();
            ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
            // 
            // pie
            // 
            this.pie.Fill = this.shapeFill;
            this.pie.Pen = this.shadePen;
            this.pie.Position = new System.Drawing.Point(188, 243);
            this.pie.Shade = this.shade;
            this.pie.Size = new System.Drawing.Size(460, 250);
            this.pie.StartAngle = 289;
            this.pie.SweepAngle = 122;
            // 
            // shapeFill
            // 
            this.shapeFill.InterpolationColors = new Camalon.Drawing.CompoundColor[] {
        new Camalon.Drawing.CompoundColor(System.Drawing.Color.FromArgb(((int)(((byte)(219)))), ((int)(((byte)(219)))), ((int)(((byte)(219)))))),
        new Camalon.Drawing.CompoundColor(System.Drawing.Color.DimGray, 1F)};
            // 
            // shadePen
            // 
            this.shadePen.Color = new Camalon.Drawing.TransparentColor(System.Drawing.Color.DarkGray);
            // 
            // shade
            // 
            this.shade.Fill = this.shadeFill;
            this.shade.Offset = new System.Drawing.Point(10, -10);
            this.shade.Repeat = 3;
            // 
            // shadeFill
            // 
            this.shadeFill.FocusScale = new Camalon.Drawing.SizeScale(0.6F, 0.6F);
            this.shadeFill.InterpolationColors = new Camalon.Drawing.CompoundColor[] {
        new Camalon.Drawing.CompoundColor(System.Drawing.Color.FromArgb(((int)(((byte)(250)))), ((int)(((byte)(250)))), ((int)(((byte)(250)))))),
        new Camalon.Drawing.CompoundColor(System.Drawing.Color.Gray, 1F)};
            this.shadeFill.WrapMode = System.Drawing.Drawing2D.WrapMode.TileFlipY;
            // 
            // rectangle
            // 
            this.rectangle.BottomLeft = new Camalon.Drawing.Corner(0.1785717F, 0.2105258F);
            this.rectangle.BottomRight = new Camalon.Drawing.Corner(0F, 0.1428569F);
            this.rectangle.Fill = this.shapeFill;
            this.rectangle.FillMode = System.Drawing.Drawing2D.FillMode.Winding;
            this.rectangle.Pen = this.shadePen;
            this.rectangle.Position = new System.Drawing.Point(54, 108);
            this.rectangle.Shade = this.shade;
            this.rectangle.Size = new System.Drawing.Size(310, 230);
            this.rectangle.TopLeft = new Camalon.Drawing.Corner(0.2500001F, 0.3684205F);
            this.rectangle.TopRight = new Camalon.Drawing.Corner(0.2322577F, 0.3478262F);
            // 
            // ShadeTest
            // 
            this.Position = new System.Drawing.Point(20, 20);
            this.Shapes.AddRange(new Camalon.Drawing.Shape[] {
            this.pie,
            this.rectangle});
            this.Size = new System.Drawing.Size(860, 570);
            ((System.ComponentModel.ISupportInitialize)(this)).EndInit();

		}
	
		public ShadeTest()
		{
			//
			// TODO: Add constructor logic here
			//
		}
	}
}
